package com.tf.pemporaryfood.domain.entity;

import java.sql.Timestamp;
import java.util.List;

/**
 * 分类表 实体类
 * ymk
 */
public class Category {

    /**
     * 分类主键ID
     */

    /**
     * 类别名字
     */
    private Long cateId;
    private String cateName;
    private Long catePid;
    private Integer cateLevel;
    private String cateIcon;
    private Integer isDelete;
    private Timestamp categoriesCreateTime;
    private Timestamp categoriesUpdateTime;
    private List<Category> children;

    /**
     * 父级分类结点ID
     */

    /**
     * 分类层级
     * 0-->一级分类
     * 1-->二级分类
     */
    /**
     * 类别图片地址
     * 暂时储存网络地址
     * null 就是一级分类
     */

    /**
     * 创建时间
     */
    /**
     * 修改时间
     */
    /**
     * 是否删除
     * 0代表未删除-->false
     * 1代表已删除-->true
     */

    /**
     * 子分类目录
     */

    public Long getCateId() {
        return cateId;
    }

    public void setCateId(Long cateId) {
        this.cateId = cateId;
    }

    public String getCateName() {
        return cateName;
    }

    public void setCateName(String cateName) {
        this.cateName = cateName;
    }

    public Long getCatePid() {
        return catePid;
    }

    public void setCatePid(Long catePid) {
        this.catePid = catePid;
    }

    public Integer getCateLevel() {
        return cateLevel;
    }

    public void setCateLevel(Integer cateLevel) {
        this.cateLevel = cateLevel;
    }

    public String getCateIcon() {
        return cateIcon;
    }

    public void setCateIcon(String cateIcon) {
        this.cateIcon = cateIcon;
    }

    public Timestamp getCategoriesCreateTime() {
        return categoriesCreateTime;
    }

    public void setCategoriesCreateTime(Timestamp categoriesCreateTime) {
        this.categoriesCreateTime = categoriesCreateTime;
    }

    public Timestamp getCategoriesUpdateTime() {
        return categoriesUpdateTime;
    }

    public void setCategoriesUpdateTime(Timestamp categoriesUpdateTime) {
        this.categoriesUpdateTime = categoriesUpdateTime;
    }

    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    public List<Category> getChildren() {
        return children;
    }

    public void setChildren(List<Category> children) {
        this.children = children;
    }

    @Override
    public String toString() {
        return "Category{" +
                "cateId=" + cateId +
                ", cateName='" + cateName + '\'' +
                ", catePid=" + catePid +
                ", cateLevel=" + cateLevel +
                ", cateIcon='" + cateIcon + '\'' +
                ", categoriesCreateTime=" + categoriesCreateTime +
                ", categoriesUpdateTime=" + categoriesUpdateTime +
                ", isDelete=" + isDelete +
                ", children=" + children +
                '}';
    }
}
